<?php
/**
 * 分组修改参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
namespace App\Params\Backend;

use App\Params\Param;

class GroupUpdateParam extends Param
{
    public $group_id = 0;
    public $store_id = 0;
    public $group_name;
    public $group_bn;
    public $type;
    public $is_active = 1;
    public $remark;

    public function rules()
    {
        return [
            'group_name' => 'required|string',
            'type' => 'required|string',
            'is_active' => 'boolean',
            'group_bn' => 'nullable|string',
            'group_id' => 'nullable|integer',
            'store_id' => 'nullable|integer',
            'remark' => 'nullable|string',
        ];
    }

    /**
     * @return mixed
     */
    public function getRemark()
    {
        return $this->remark;
    }

    /**
     * @param mixed $remark
     */
    public function setRemark($remark): void
    {
        $this->remark = $remark;
    }

    /**
     * @return mixed
     */
    public function getGroupId()
    {
        return $this->group_id;
    }

    /**
     * @param mixed $group_id
     */
    public function setGroupId($group_id): void
    {
        $this->group_id = $group_id;
    }

    /**
     * @return mixed
     */
    public function getStoreId()
    {
        return $this->store_id;
    }

    /**
     * @param mixed $store_id
     */
    public function setStoreId($store_id): void
    {
        $this->store_id = $store_id;
    }

    /**
     * @return mixed
     */
    public function getGroupName()
    {
        return $this->group_name;
    }

    /**
     * @param mixed $group_name
     */
    public function setGroupName($group_name): void
    {
        $this->group_name = $group_name;
    }

    /**
     * @return mixed
     */
    public function getGroupBn()
    {
        return $this->group_bn;
    }

    /**
     * @param mixed $group_bn
     */
    public function setGroupBn($group_bn): void
    {
        $this->group_bn = $group_bn;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param mixed $type
     */
    public function setType($type): void
    {
        $this->type = $type;
    }

    /**
     * @return int
     */
    public function getIsActive(): int
    {
        return $this->is_active;
    }

    /**
     * @param int $is_active
     */
    public function setIsActive(int $is_active): void
    {
        $this->is_active = $is_active;
    }
}